package com.atguigu.crowd.service.api;

import com.atguigu.crowd.entity.Role;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface RoleService {

    /**
     * 获取页面数据 用于分页
     * @param keyword
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<Role> getPageInfo(String keyword, Integer pageNum , Integer pageSize);


    void saveRole(Role role);

    void updateRole(Role role);

    void removeRole(List<Integer> roleIdList);

    List<Role> getAssignedRole(Integer adminId);

    List<Role> getUnAssignedRole(Integer adminId);
}
